﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="forget.aspx.cs" Inherits="forget" %>

<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">        
    <style type="text/css">
        .style1
        {
            width: 194px;
        }
    </style>
    <script type="text/javascript">
        function changeImg() {
            document.getElementById("safecode").src = "captcha/CaptchaHandler.ashx?" + Math.random();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div id="AllOb-Table">
    <div id="AllTitle">忘記密碼</div>
    <div id="ALL-Html">請輸入您的帳號(電子信箱)，系統會自動發送密碼到信箱中</div>
    <div id="All-Stitle">請輸入您的信箱</div>
    <table border="0" cellpadding="0" cellspacing="0" id="Forget">
      <tr>
        <td class="style1">您的帳號(電子信箱)</td>
        <td width="225">
            <asp:TextBox ID="txtLoginId" runat="server" ></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="請輸入帳號"
                  ControlToValidate="txtLoginId" Display="None" ValidationGroup="Send"></asp:RequiredFieldValidator>
        </td>
        <td width="70">&nbsp;</td>
       
      </tr>
      <%--<tr>
        <td class="style1">您的信箱</td>
        <td width="225">
            <asp:TextBox ID="txtEmail" runat="server" ></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="請輸入信箱"
                  ControlToValidate="txtEmail" Display="None" ValidationGroup="Send"></asp:RequiredFieldValidator>
        </td>
        <td width="70">&nbsp;</td>
       
      </tr>--%>
       <tr>
        <td class="style1">請輸入驗證碼</td>
        <td width="225">
            <asp:TextBox ID="txtSafeCode" runat="server" ></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="請輸入驗證碼"
                  ControlToValidate="txtSafeCode" Display="None" ValidationGroup="Send"></asp:RequiredFieldValidator>
        </td>
        <td width="70"></td>
      </tr>
       <tr>
        <td class="style1">驗證碼</td>
        <td width="300"><img alt="點圖更新驗證碼" id="safecode" 
                src="captcha/CaptchaHandler.ashx" onclick="javascript:changeImg();"/></td>
        <td width="70" rowspan="3"><asp:ImageButton ID="btnSend" runat="server" onclick="btnSend_Click" ImageUrl="image/forget-btn.png" Width="64" Height="64" ValidationGroup="Send"/></td>
      </tr>
    </table>
  </div>
  <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Send" 
        ShowMessageBox="True" ShowSummary="False"/>  
</asp:Content>

